package com.leyou.item.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * @author 岩冰
 * @version 1.0
 * @date:2018/9/27
 */
public interface CategoryBrandMapper  {


    @Delete("delete from tb_category_brand where category_id=#{cid} and  brand_id=#{bid}")
    void delete(@Param("cid") Long cid, @Param("bid") Long bid);
    @Delete("delete from tb_category_brand where  brand_id=#{bid}")
    void deleteByBrandId(@Param("bid")Long bid);
}
